
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>日月模式切换</title>
    <link rel="stylesheet" href="style.css">
</head>

<body>
<div class="btn-box">
    <div class="sunBtn">
        <span class="iconfont icon-taiyang"></span> 白天模式
    </div>
    <div class="moonBtn">
        <span class="iconfont icon-moon"></span> 黑夜模式
    </div>
</div>

<div class="dark" id="container">
    <div class="bg"></div>
    <div class="moon-box">
        <div class="moon"></div>
    </div>
    <div class="sun-box">
        <div class="sun"></div>
    </div>
    <div class="sea"></div>
</div>

<script src="script.js"></script>
</body>

</html>